package de.kardass.jsmatep.in;

import de.kardass.jsmatep.schema.jSmaTePImportConfig.FieldType;

public abstract class ConfigUtil {

	/**
	 * Return the value object's property name based on the underlying XML-config.
	 * @param fieldConfig
	 * 				the value object's property name
	 * @return
	 */
	public static final String getFieldName(FieldType fieldConfig) {
		return fieldConfig.getBeanPropertyName() == null ? fieldConfig.getName() : fieldConfig.getBeanPropertyName();

	}
}
